home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / PDriver / s / InsertIllu < prev    next >
Text File  |  1995-08-26  |  1KB  |  39 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    PDriver.InsertIllu.s
  11. ;   Author:  Copyright © 1993 Jason Howat
  12. ;   Version: 1.00 (07 Jul 1993)
  13. ;   Purpose: Inserts a file containing an illustration into the
  14. ;            current job's output.
  15.  
  16.         GET     ^.h.regdefs
  17.         GET     ^.h.swinos
  18.         GET     ^.h.macros
  19.  
  20. ; os_error *PDriver_InsertIllustration(int illustration_handle, void *drawpath,
  21. ;                                      wimp_point *bottom_left,
  22. ;                                      wimp_point *bottom_right,
  23. ;                                      wimp_point *top_left);
  24.  
  25.         PREAMBLE
  26.         STARTCODE PDriver_InsertIllustration
  27. ;
  28.         MOV     ip, sp
  29.         STMFD   sp!, {v1,v2,v3,v4,lr}
  30.         LDR     v1, [ip, #0]
  31.         LDMIA   v1, {r6,r7}
  32.         LDMIA   a4, {r4,r5}
  33.         LDMIA   a3, {r2,r3}
  34.         SWI     SWI_PDriver_InsertIllustration + XOS_Bit
  35.         MOVVC   a1, #0
  36.         LDMFD   sp!, {v1,v2,v3,v4,pc}^
  37. ;
  38.         END
  39.